package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Mapper
public interface OrderSettingDao {


    List<OrderSetting> getByMonthYear(LocalDate begin, LocalDate end);


    void editNumberByDate(Integer number, Date orderDate);

    @Insert("insert into t_ordersetting(id, order_date, number, reservations) VALUES " +
            "(#{id},#{orderDate},#{number},#{reservations}) ")
    void inster(OrderSetting orderSetting);
}
